package io.gitee.zicai.service.common.enum

/**
 * RpcType
 * @author zicai
 * @since 2019-12-06
 */
enum class RpcType(open var value: String?) {
    DUBBO("dubbo"),
    FEIGN("feign"),
    RIBBON("ribbon"),
    OTHER("other");

    companion object {
        fun of(type: String) = values().firstOrNull { type == it.value } ?: OTHER
    }
}